package com.rentong.wx.sys.service.impl;

import com.rentong.wx.sys.dao.SysConfHelpDao;
import com.rentong.wx.sys.domain.SysConfHelpEntity;
import com.rentong.wx.sys.service.SysConfHelpService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SysConfHelpServiceImpl implements SysConfHelpService {
    @Resource
    private SysConfHelpDao sysConfHelpDao;

    @Override
    @Transactional(rollbackFor = Exception.class)
    public List<SysConfHelpEntity> getHelpInfoList(Integer pageNum, Integer pageSize,Integer helpType){
        return sysConfHelpDao.getHelpInfoList(pageNum,pageSize,helpType);
    }

    @Override
    @Transactional(rollbackFor = Exception.class)
    public SysConfHelpEntity getHelpInfoById(Long helpId) {
        return sysConfHelpDao.getHelpInfoById(helpId);
    }
}
